package com.lhl.demo.domain.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;

@Entity
@Getter
@Setter
@NoArgsConstructor
@PrimaryKeyJoinColumn(name="sid")//把主键对应的列名更改为sid
//@DiscriminatorValue("salary")//区别的值是rate
public class SalaryEmployee extends Employee {

	@Column(nullable=true)
	private Float salary;
}
